<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="../static/lib/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="../static/lib/fontawesome4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="../static/css/head.css">
    <link rel="stylesheet" href="../static/css/foot.css">
    <link rel="stylesheet" href="../static/css/resgist.css">
    
    
            
</head>
<body>
    <div class="myhead"></div>
    <div>
            <div class="register">
                     <form action="/login/" method="post">
                    {% csrf_token %}
                    <div class="left">
                        <div class="title">
                            用户登录
                        </div>
                        <div class="zctable">

                                <table>
                                    <tr>
                                        <td>用户名称:</td>
                                        <td><input id="username" name="username" type="text" class="yhxx"></td>
                                        <td class="ts">
                                            <span class="ts_red">* </span>
                                            <span>6~16个字符，可使用字母、数字、下划线，需以字母开头</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>用户密码:</td>
                                        <td><input id ="password" name="password" type="text" class="yhxx"></td>
                                        <td class="ts">
                                            <span class="ts_red">* </span>
                                            <span>6~16个字符，区分大小写</span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>企业编号:</td>
                                        <td><input id= "level_id" name="level_id" type="text" class="yhxx"></td>
                                    </tr>
                                </table>
                        </div>

                        <div class="zc" style="margin-top:60px;">
                            <button class="btn btn-primary" type="submit">登录</button>
                        </div>
                    </div>
                </form>
                    <!--<div class="right">
                        <div class="zhuce_right_title">
                            <span>没有账号，</span><a href="resgist.html">去注册>></a>
                        </div>
                        <div class="zhuce_right_bt">
                            <div class="zc_right_title">平台注册帮助</div>
                        </div>
                        <div class="zhuce_right_main">
                            <ul>
                                <li>
                                    <span>1</span>
                                    <p>邮箱注册操作指南</p>
                                </li>
                                <li>
                                    <span>2</span>
                                    <p>邮箱注册时提示邮箱号码已被绑定怎么办?</p>
                                </li>
                                <li>
                                    <span>3</span>
                                    <p>注册平台时昵称显示“已经被注册”如何处理?</p>
                                </li>
                                <li>
                                    <span>4</span>
                                    <p>注册时提示"你所使用的IP地址异常",该怎么办?</p>
                                </li>
                            </ul>
                        </div>
                        <div class="more_help">
                            <router-link to="">更多帮助</router-link>
                        </div>
                    </div>-->
                    
                    
                </div>
    </div>
    <div class="myfoot"></div>
</body>
<script src="../static/lib/jquery-3.3.1.min.js"></script>
<script src="../static/lib/bootstrap/js/bootstrap.min.js"></script>
<script src="../static/js/head.js"></script>
<script src="../static/js/foot.js"></script>
<script>
    function nowtime(){
        var myDate = new Date();
        myDate.getYear();        //获取当前年份(2位)
        var year = myDate.getFullYear();    //获取完整的年份(4位,1970-????)
        var month=myDate.getMonth()+1;       //获取当前月份(0-11,0代表1月)
        var data=myDate.getDate();        //获取当前日(1-31)
        myDate.getDay();         //获取当前星期X(0-6,0代表星期天)
        myDate.getTime();        //获取当前时间(从1970.1.1开始的毫秒数)
        myDate.getHours();       //获取当前小时数(0-23)
        myDate.getMinutes();     //获取当前分钟数(0-59)
        myDate.getSeconds();     //获取当前秒数(0-59)
        myDate.getMilliseconds();    //获取当前毫秒数(0-999)
        myDate.toLocaleDateString();     //获取当前日期
        var mytime=myDate.toLocaleTimeString();     //获取当前时间
        myDate.toLocaleString( );        //获取日期与时间
        var datatime=year+"-"+month+"-"+data;
        $(".data").html(datatime);
        $(".time1").html(mytime)
    }
    nowtime();
    window.onload=function(){
                //每1秒刷新时间
        setInterval("nowtime()",1000);
    }
    var html=`
<div class="top">
    <div class="title1"><div class="tit1">智能雷电系统</div></div>
            <div class="time">
                <div class="data"></div>
                <div class="time1"></div>
        </div>
            
        <div class="titright">
            <div class="dlzc">
                <i class="fa fa-user-o" aria-hidden="true"></i><a href="login.html" style="padding-right:5px">登录</a>|
            <i class="fa fa-power-off" aria-hidden="true"></i><a href="/register/">注册</a>
            </div>
            <div class="search"><input text="text" class="seek"/><div class="csicon"><i class="fa fa-search" aria-hidden="true"></i></div></div>
    
        </div>
    </div>
`
$(".myhead").html(html)
</script>
</html>